-
Notifications
You must be signed in to change notification settings - Fork 745
/
Html5ModuleControlFactory.cs
31 lines (26 loc) · 1.16 KB
/
Html5ModuleControlFactory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.UI.Modules.Html5
{
using System.Web.UI;
using DotNetNuke.Entities.Modules;
public class Html5ModuleControlFactory : BaseModuleControlFactory
{
/// <inheritdoc/>
public override Control CreateControl(TemplateControl containerControl, string controlKey, string controlSrc)
{
return new Html5HostControl("~/" + controlSrc);
}
/// <inheritdoc/>
public override Control CreateModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration)
{
return this.CreateControl(containerControl, string.Empty, moduleConfiguration.ModuleControl.ControlSrc);
}
/// <inheritdoc/>
public override Control CreateSettingsControl(TemplateControl containerControl, ModuleInfo moduleConfiguration, string controlSrc)
{
return this.CreateControl(containerControl, string.Empty, controlSrc);
}
}
}